#include "Render/PiccoloRenderContext.h"

namespace Piccolo
{
    PiccoloRenderContext::PiccoloRenderContext(PiccoloWindow *window)
    {
        mGraphicsContext = PiccoloGraphicsContext::Create(window);
        auto vkContext = dynamic_cast<PiccoloVKGraphicsContext*>(mGraphicsContext.get());
        mDevice = std::make_shared<PiccoloVKDevice>(vkContext, 1, 1);
        mSwapchain = std::make_shared<PiccoloVKSwapchain>(vkContext, mDevice.get());
    }

    PiccoloRenderContext::~PiccoloRenderContext()
    {
    }
}
